package com.wze.wze.Impl;

import com.wze.wze.Entity.UserTab;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper //表示mybatis XML对应的借口
public interface UserTabImpl {
    UserTab doLogin(String UName,String Pwd);//登录
    UserTab doPLogin(String Phone,String Pwd);
    int upUser(@Param("usertab") UserTab usertab);//修改
    UserTab getUserById(int id) ;//根据id获取用户
    int delUserById(int id);//根据id删除用户
    int addUser(String UName,String Pwd,String NickName,String Phone,String Email,String userImg);//添加用户
    UserTab getUserByUName(String UName) ;//根据用户名获取用户
    List<UserTab> getUserList(int Start, int Page, int id, String UName);//分页查询所有用户
    UserTab getUserByEmail(String Email);
    int getUserCount();//获取用户数量
}
